//
//  UserOfDataNewTopic.m
//  Gift
//
//  Created by li cheng on 16/09/20
//  Copyright (c) Apon. All rights reserved.
//

#import "UserOfDataNewTopic.h"
#import "BaseOfDataNewTopicOfUserDataNewTopic.h"
#import "TeacherOfUserDataNewTopic.h"
@implementation UserOfDataNewTopic
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"base"]) {
        _base = [BaseOfDataNewTopicOfUserDataNewTopic modelDic:value];
    }
    if ([key isEqualToString:@"teacher"]) {
        _teacher = [TeacherOfUserDataNewTopic modelDic:value];
    }
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
@end
